<template>
  <div>
      <van-nav-bar
      title="注册"
      fixed
      placeholder
      z-index="999"
      left-arrow
      @click-left="$router.back()"
    />
    <main class="login-main">


      <div class="login-logo"><img class="imga" src="../../src/assets/logo.png" /></div>
      <div class="login-from">
        <label>
          <input type="text" v-model="username" placeholder="请输入用户名" />
        </label>
        <label>
          <input type="password" v-model="password" placeholder="请输入密码" />
        </label>
      </div>
      <div class="login-btn" @click="reg">
        <a href="javascript:void(0);">注册</a>
      </div>

      <div class="link-home">
        <a href="javascript:void(0);">返回登录</a>
      </div>
    </main>
  </div>
</template>

<script>
export default {
  name: "login",

  data() {
    return {
      username:'',
      password:''
    };
  },

  mounted() {},

  methods: {

        // let regTel =
        //   /^(0|86|17951)?(13[0-9]|15[012356789]|166|17[3678]|18[0-9]|14[57])[0-9]{8}$/

    // reg(){
    //   let {username,password} = this;

    //   this.$http.post('/user/pub/register',{
    //     username,password
    //   })
    //   .then(res=>{
    //      console.log(res)
    //   })
    // }


  },
};
</script>

<style lang="less" scoped>
  @import url('./css/login.less');
</style>